<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航动画</title>
    <link rel="stylesheet" href="style.css" />
</head>

<body>
    <nav class="active" id="nav">
        <ul>
            <li><a href="#"> Home</a></li>
            <li><a href="#"> Home</a></li>
            <li><a href="#"> Home</a></li>
            <li><a href="#"> Home</a></li>
        </ul>
        <button class="icon" id="toggle">
            <div class="line line1"></div>
            <div class="line line2"></div>
        </button>
    </nav>
</body>
<script src="script.js"></script>

</html>